<template>
  <div class="email_div">
    <!-- 头部 -->
    <my-header :left="true" title="站内信">
      <!-- 插入 右侧icon -->
      <template class="right_icon" #right_icon>
        <van-popover  v-model="showPopover" theme="dark" trigger="click" placement="bottom-end" >
          <!-- 第一行 首页 -->
          <van-row @click="showPopover=false;$router.push('/home');">
            <!-- 图标部分 -->
            <van-col sapn="4" offset="4">
              <span class="iconfont icon-shouye"></span>
            </van-col>
            <!-- 文字部分 -->
            <van-col sapn="15" offset="1">
              <span class="icon_font">首页</span>
            </van-col>
          </van-row>
           <!-- 第三行 我的收藏-->
           <van-row  @click="showPopover=false;$router.push('/collection');">
            <!-- 图标部分 -->
            <van-col sapn="4" offset="4">
              <span class="iconfont icon-shoucang1"></span>
            </van-col>
            <!-- 文字部分 -->
            <van-col sapn="15" offset="1">
              <span class="icon_font">收藏</span>
            </van-col>
          </van-row>
          <template #reference>
            <span class="iconfont icon-gengduo"></span>
          </template>
        </van-popover>
      </template>
    </my-header>
    <!-- 主体部分 -->
    <email-body></email-body>
  </div>
</template>
<script>
import MyHeader from "../common/Header";
import EmailBody from "./components/EmailBody";
export default {
  name:"Email",
  components:{
    MyHeader,
    EmailBody
  },
  data() {
    return {
      showPopover:false
    }
  },
}
</script>
<style lang="less" scoped>
  .email_div{
    padding-top: 0.45rem;
    min-height: 100%;
  }
  .van-popover{
    .van-row{
      width: 1rem;
      font-size: 0.15rem;
      height: 0.38rem;
      text-align: center;
      border-top: 0.01rem solid #3F3E48;
      line-height: 0.35rem;
    }
  }
</style>